/**
 * 功能描述 旅居-报名收费
 * @author zhoulin
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");

    //assets
    var template = require("./assets/tpl/signupcharge_main.tpl");
    require("./assets/css/signupcharge_main.css");

    //business
    var signUpRegisterBiz = require("./business/signUpRegisterBiz");

    //component
    var signupChargeSubnavComp = require("./component/signupChargeSubnavComp");
    var signupChargeGridComp = require("./component/signupChargeGridComp");
    var signupChargeFormComp = require("./component/signupChargeFormComp");
    var signupChargeEditGridComp = require("./component/signupChargeEditGridComp");
    var signupChargeDetailGridComp = require("./component/signupChargeDetailGridComp");

    //constant

    //handler

    //store
    var queryGridDataSvc = require("./store/queryGridDataSvc");

    var signupcharge_main = ELView.extend({
        attrs: {
            template: template
        },
        initComponent: function (params, widget) {
        	signupChargeSubnavComp.initComponent(params, widget);
        	signupChargeGridComp.initComponent(params, widget);
        	signupChargeFormComp.initComponent(params, widget);
        	signupChargeEditGridComp.initComponent(params, widget);
        	signupChargeDetailGridComp.initComponent(params, widget);
        },
//        signupregister: function(params, widget){
//        	signUpRegisterBiz.start(params, widget);
//        },
        afterInitComponent: function (params, widget) {
        	queryGridDataSvc.queryGridData(params, widget);
        }
    });

    module.exports = signupcharge_main;
});
